import request from '@/utils/request'
import fileRequest from '@/utils/fileRequest';
/**
 * 获取全部列表
 * @param params
 * @returns {*}
 */
export function getList(params) {
  return request({
    url: '/getTrainList',
    method: 'GET',
    params
  })
}
/**
 * @description 获取所有状态
 * @returns {*}
 */
export function getTrainStateApi(){
  return request({
    url: '/getTrainStateList',
    method: 'GET'
  })
}
/**
 * @description 编辑
 * @returns {*}
 */
export function editTrainApi(data){
  return request({
    url: '/editTrain',
    method: 'POST',
    data
  })
}

/**
 * @description 查单个
 * @returns {*}
 */
export function getTrainByIdApi(params){
  return request({
    url: '/getTrainById',
    method: 'GET',
    params
  })
}

/**
 * @description 修改状态
 * @returns {*}
 */
export function editTrainStateApi(data){
  return request({
    url: '/editTrainState',
    method: 'POST',
    data
  })
}

/**
 * @description 视频培训列表
 * @returns {*}
 */
export function bakGetVideoListApi(params){
  return request({
    url: '/bakGetVideoList',
    method: 'GET',
    params
  })
}
/**
 * @description 编辑视频培训
 * @returns {*}
 */
export function insertAndUpdateNewsApi(data){
  return request({
    url: '/insertAndUpdateVideoTrain',
    method: 'POST',
    data
  })
}
/**
 * @description 视频培训修改状态
 * @returns {*}
 */
export function deleteVideoByIdApi(params){
  return request({
    url: '/deleteVideoById',
    method: 'GET',
    params
  })
}

export function getVideoTrainByIdApi(params){
  return request({
    url: '/getVideoTrainById',
    method: 'GET',
    params
  })
}
export function findJobNameApi(params){
  return request({
    url: '/findJobName',
    method: 'POST',
    params
  })
}
export function getTrainCustomerListApi(params){
  return request({
    url: '/getTrainCustomerList',
    method: 'GET',
    params
  })
}

export function getQuestionnaireConfigApi(params){
  return request({
    url: '/getQuestionnaireConfig',
    method: 'GET',
    params
  })
}
/**
 * @description 查询专业列表
 * @returns {*}
 */
export function getTrainSpecialityListApi(params){
  return request({
    url: '/getTrainSpecialityList',
    method: 'GET',
    params
  })
}
/**
 * @description 编辑专业
 * @returns {*}
 */
export function editSpecialityApi(data){
  return request({
    url: '/editSpeciality',
    method: 'POST',
    data
  })
}
/**
 * @description 查询单个专业
 * @returns {*}
 */
export function getSpecialityByIdApi(params){
  return request({
    url: '/getSpecialityById',
    method: 'GET',
    params
  })
}
/**
 * @description 删除专业
 * @returns {*}
 */
export function delSpecialityByIdApi(params){
  return request({
    url: '/delSpecialityById',
    method: 'GET',
    params
  })
}









